'use strict';

stareal
    .controller("IntegralGuideController", function ($scope, $api,$state, $alert,$stateParams) {
        //获取用户规则 app/activity/rulelist
        if($stateParams.app==1){
            $scope.titleStatus=true;
        }
        $scope.Getrulelist = function () {
            $api.get("app/integral/taskList",{},true)
                .then(function (ret) {
                    var data=ret.data;
                    $scope.rulelists=data;
                    console.log(ret.data);
                },function (err) {
                    $alert.show(err)
                })
        }
        $scope.Getrulelist();
    });